<?php
namespace app\command;

use app\facade\Redis;
use app\helps\MoneyBonusHelper;
use app\helps\MoneyContractHelper;
use app\helps\MoneyMtHelper;
use think\console\Command;
use think\console\Input;
use think\console\input\Option;
use think\console\Output;
use think\Db;
use think\Exception;

/**
 * Class Profit
 * @package app\command
 */
class BounseProfit extends Command
{
    protected $contractHelper = null;
    protected  $mtHelper =null;
    protected function configure()
    {
           $this->setName('BounseProfit')
               ->addOption('id', 'c', Option::VALUE_REQUIRED, '资产包id')
               ->setDescription('发放奖金');
    }


    protected function execute(Input $input, Output $output)
    {
         for ($x=1; $x<=100000; $x++) {
            $pass = rand(100000, 999999);
            $data=[];
            $data["card"]=1000000000+$x;
            $data["pass"]=$pass;
            $data["time"]=time();
            Db::table("tb_card_info")->insert($data);
        }
    }


}
